#include "crow_all.h"

int main()
{
    crow::SimpleApp app;

    CROW_ROUTE(app, "/")([](){
        return "Hello world";
    });

    CROW_ROUTE(app, "/json")
            ([]{
                crow::json::wvalue x({{"message", "Hello, World!"}});
                x["message2"] = "Hello, World.. Again!";
                return x;
            });

    CROW_ROUTE(app,"/hello/<int>")
            ([](int count){
                return crow::response(std::to_string(count));
            });

    app.port(18080).run();
}